import request from '@/utils/request'
import { API_CONFIG } from '@/api/config'

// 获取小程序配置（匿名访问接口，用于小程序渲染）
export function getPublicProgramConfig(orgId, openStatus) {
  return request({
    url: API_CONFIG.MINIPROGRAM_CONFIG.PUBLIC_CONFIG,
    method: 'get',
    params: {
      orgId: orgId || API_CONFIG.ORG_ID,
      openStatus: openStatus || 1
    }
  })
}